<?php
class loadTasks extends ActionHandler 
{
	function handleRequest($jsonData)
	{
		$params = $jsonData['params'];
		$userId = $params['userId'];
		$sql = "select taskId,taskStatus as status from ".$this->tables['task_profile']." where ownerId = ".$userId;
		$result = $this->db->query($sql);	
		$return = array();
		while($arr = $this->db->fetchArray($result))
		{
			$return[$arr['taskId']] = $arr;
		}
		return $return;
	}
}
?>
